<div class="bjui-pageContent">
    <form action="admin/system/role-menu" id="system-role-menu-form" data-toggle="validate" data-alertmsg="false">
        <div class="bjui-row col-3">

            <label class="row-label">角色名称</label>
            <div class="row-input">{{$info->display_name}}</div><br>

            <label class="row-label">选择节点</label>
            <div>
                @foreach ($menu_top as $val)
                    @foreach ($menu_parent as $v)
                        @if ( $v['pid'] == $val['id'] )
                            <div>
                                <label class="row-label"></label>
                                <div class="row-input">{{$val['name']}}->{{$v['name']}}</div>
                                @if ( isset($menu_son[$v['id']]) )
                                    @foreach ($menu_son[$v['id']] as $menu)
                                        <label class="row-label"></label>
                                        <div class="row-input">
                                            @if (in_array($menu['id'],$role_menu_arr))
                                                <input type="checkbox" checked name="id_arr[]" rows="1" value="{{$menu['id']}}">{{$menu['name']}}
                                            @else
                                                <input type="checkbox" name="id_arr[]" value="{{$menu['id']}}">{{$menu['name']}}
                                            @endif
                                        </div>
                                    @endforeach
                                @endif
                            </div>
                        @endif
                    @endforeach
                    <hr/>
                @endforeach
            </div>
            <label class="row-label"></label>
            <div class="row-input">
                <input type="hidden" name="id" value="{{$info->id}}">
                <button type="submit" class="btn-default">保存</button>
            </div>
        </div>
        <input type="hidden" name="id" value="{{$info->id}}">
    </form>
</div>